package com.erp.erp_dao.Department;

import com.erp.erp_entitys.Department.DepartmentEntity;
import com.erp.erp_entitys.Department.DepartmentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IDepartmentDAO {
    long countByExample(DepartmentExample example);

    int deleteByExample(DepartmentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DepartmentEntity record);

    int insertSelective(DepartmentEntity record);

    List<DepartmentEntity> selectByExample(DepartmentExample example);
    List<DepartmentEntity> selectByCodeList(List<String> list);

    DepartmentEntity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DepartmentEntity record, @Param("example") DepartmentExample example);

    int updateByExample(@Param("record") DepartmentEntity record, @Param("example") DepartmentExample example);

    int updateByPrimaryKeySelective(DepartmentEntity record);

    int updateByPrimaryKey(DepartmentEntity record);

    List<Map> selectByPid(String pid);
    int updateByPid(@Param("pid") String pid,@Param("path") String path);
    List<String> selectByCode(String code);
}